/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.mdm.entity;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import cn.net.ecode.modules.sys.entity.Area;

import cn.net.ecode.common.persistence.DataEntity;

import javax.validation.constraints.NotNull;

/**
 * 企业Entity
 *
 * @author xiaodunshan
 * @version 2019-08-26
 */
public class MdmBtypeInfo extends DataEntity<MdmBtypeInfo> {

    private static final long serialVersionUID = 1L;
    private String btypeCode;        // btype_code
    private String btypeName;        // 企业名称
    private String areaCode;        // 区域编码
    private String areaName;        // 区域名称
    private String classifyCode;        // 分类编码
    private String classifyName;        // 分类名称
    private String typeCode;        // 类型编码
    private String typeName;        // 类型名称
    private String scaleCode;        // 用电规模编码
    private String scaleName;        // 用电规模名称
    private String linkman;        // 联系人
    private String linkmanTel;        // 联系方式
    private String provincePowerGrid;        // 所属省级电网
    private String prefecturePowerGrid;        // 所属地级电网
    private Double lastYearElectricQuantity;        // 上年总用电量
    private Double transformerCapacity;        // 变压器容量
    private Double directCapacity;        // 直供容量
    private Double maxCapacity;        // 最大容量
    private String oneselfPower;        // 自备电源
    private String voltageClassCode;        // 电压等级编码
    private String voltageClassName;        // 电压等级名称
    private String recordsStatus;        // 备案状态
    private String imgUrls;     // 图片链接串
    private String wxOpenid;     // 微信openid
    private String validateCode;     // 验证码

    public MdmBtypeInfo() {
        super();
    }

    public MdmBtypeInfo(String id) {
        super();
        this.id = id;
    }

    @Length(min = 0, max = 100, message = "btype_code长度不能超过 100 个字符")
    public String getBtypeCode() {
        return btypeCode;
    }

    public void setBtypeCode(String btypeCode) {
        this.btypeCode = btypeCode;
    }

    @NotBlank(message = "企业名称不能为空")
    @Length(min = 0, max = 100, message = "企业名称长度不能超过 100 个字符")
    public String getBtypeName() {
        return btypeName;
    }

    public void setBtypeName(String btypeName) {
        this.btypeName = btypeName;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    @Length(min = 0, max = 64, message = "区域名称长度不能超过 64 个字符")
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Length(min = 0, max = 64, message = "分类编码长度不能超过 64 个字符")
    public String getClassifyCode() {
        return classifyCode;
    }

    public void setClassifyCode(String classifyCode) {
        this.classifyCode = classifyCode;
    }

    @Length(min = 0, max = 64, message = "分类名称长度不能超过 64 个字符")
    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    @Length(min = 0, max = 64, message = "类型编码长度不能超过 64 个字符")
    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    @Length(min = 0, max = 64, message = "类型名称长度不能超过 64 个字符")
    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Length(min = 0, max = 64, message = "用电规模编码长度不能超过 64 个字符")
    public String getScaleCode() {
        return scaleCode;
    }

    public void setScaleCode(String scaleCode) {
        this.scaleCode = scaleCode;
    }

    @Length(min = 0, max = 64, message = "用电规模名称长度不能超过 64 个字符")
    public String getScaleName() {
        return scaleName;
    }

    public void setScaleName(String scaleName) {
        this.scaleName = scaleName;
    }

    @Length(min = 0, max = 64, message = "联系人长度不能超过 64 个字符")
    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    @Length(min = 0, max = 64, message = "联系方式长度不能超过 64 个字符")
    public String getLinkmanTel() {
        return linkmanTel;
    }

    public void setLinkmanTel(String linkmanTel) {
        this.linkmanTel = linkmanTel;
    }

    @Length(min = 0, max = 64, message = "所属省级电网长度不能超过 64 个字符")
    public String getProvincePowerGrid() {
        return provincePowerGrid;
    }

    public void setProvincePowerGrid(String provincePowerGrid) {
        this.provincePowerGrid = provincePowerGrid;
    }

    @Length(min = 0, max = 64, message = "所属地级电网长度不能超过 64 个字符")
    public String getPrefecturePowerGrid() {
        return prefecturePowerGrid;
    }

    public void setPrefecturePowerGrid(String prefecturePowerGrid) {
        this.prefecturePowerGrid = prefecturePowerGrid;
    }

    public Double getLastYearElectricQuantity() {
        return lastYearElectricQuantity;
    }

    public void setLastYearElectricQuantity(Double lastYearElectricQuantity) {
        this.lastYearElectricQuantity = lastYearElectricQuantity;
    }

    public Double getTransformerCapacity() {
        return transformerCapacity;
    }

    public void setTransformerCapacity(Double transformerCapacity) {
        this.transformerCapacity = transformerCapacity;
    }

    public Double getDirectCapacity() {
        return directCapacity;
    }

    public void setDirectCapacity(Double directCapacity) {
        this.directCapacity = directCapacity;
    }

    public Double getMaxCapacity() {
        return maxCapacity;
    }

    public void setMaxCapacity(Double maxCapacity) {
        this.maxCapacity = maxCapacity;
    }

    @Length(min = 0, max = 64, message = "自备电源长度不能超过 64 个字符")
    public String getOneselfPower() {
        return oneselfPower;
    }

    public void setOneselfPower(String oneselfPower) {
        this.oneselfPower = oneselfPower;
    }

    @Length(min = 0, max = 64, message = "电压等级编码长度不能超过 64 个字符")
    public String getVoltageClassCode() {
        return voltageClassCode;
    }

    public void setVoltageClassCode(String voltageClassCode) {
        this.voltageClassCode = voltageClassCode;
    }

    @Length(min = 0, max = 64, message = "电压等级名称长度不能超过 64 个字符")
    public String getVoltageClassName() {
        return voltageClassName;
    }

    public void setVoltageClassName(String voltageClassName) {
        this.voltageClassName = voltageClassName;
    }

    @Length(min = 0, max = 64, message = "备案状态长度不能超过 64 个字符")
    public String getRecordsStatus() {
        return recordsStatus;
    }

    public void setRecordsStatus(String recordsStatus) {
        this.recordsStatus = recordsStatus;
    }

    @Length(min = 0, max = 500, message = "图片链接串长度不能超过 500 个字符")
    public String getImgUrls() {
        return imgUrls;
    }

    public void setImgUrls(String imgUrls) {
        this.imgUrls = imgUrls;
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public String getValidateCode() {
        return validateCode;
    }

    public void setValidateCode(String validateCode) {
        this.validateCode = validateCode;
    }
}